From a84b81d4feff24063ac5dfd3561a33b20d97909d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 27 Oct 2010 12:53:47 -0400 Subject: [PATCH] Fix gtk_fixed_get_preferred_width When dealing with widths, use x, not y. Spotted by Ignacio Casal Quintero. --- gtk/gtkfixed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c index abdeb54aa5..cf9fb20dfe 100644 --- a/gtk/gtkfixed.c +++ b/gtk/gtkfixed.c @@ -337,8 +337,8 @@ gtk_fixed_get_preferred_width (GtkWidget *widget, gtk_widget_get_preferred_width (child->widget, &child_min, &child_nat); - *minimum = MAX (*minimum, child->y + child_min); - *natural = MAX (*natural, child->y + child_nat); + *minimum = MAX (*minimum, child->x + child_min); + *natural = MAX (*natural, child->x + child_nat); } } -- 2.30.2